public class 求和 {
    public static void main(String[] args) {
        int sum = 0, i = 1;
        do {
            if(i%2!=0){
                sum += i;}
            i++;
        }while(i<=99);
        System.out.println("sum="+sum);
    }
}